import { SeedPg } from '@snaplet/seed/adapter-pg';
import { defineConfig } from '@snaplet/seed/config';
import { Client } from 'pg';

export default defineConfig({
  adapter: async () => {
    const client = new Client({
      connectionString: 'postgresql://postgres:postgres@localhost:54322/postgres',
    });
    await client.connect();
    return new SeedPg(client);
  },
  select: ['!*', 'public.*', 'auth.users', 'auth.identities', 'storage.buckets'],
});
